import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/platform_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class PlatformEntity {
	late int code;
	late String msg;
	late List<PlatformData> data;

	PlatformEntity();

	factory PlatformEntity.fromJson(Map<String, dynamic> json) => $PlatformEntityFromJson(json);

	Map<String, dynamic> toJson() => $PlatformEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PlatformData {
	late String platformcode;
	late String platform;

	PlatformData();

	factory PlatformData.fromJson(Map<String, dynamic> json) => $PlatformDataFromJson(json);

	Map<String, dynamic> toJson() => $PlatformDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}